﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MHYS.DEMO.Model;
using MHYS.DEMO.DAL;
namespace MHYS.DEMO.BLL
{
    public class ProductManager
    {


        /// <summary>
        /// 返回所有商品信息
        /// </summary>
        /// <returns>返回所有商品实体数据集</returns>
        public static List<Product> ShowProduct()
        {
            return ProductService.SelectProduct();
        }

        /// <summary>
        /// 按照商品编号查询商品
        /// </summary>
        /// <param name="Pid">商品编号</param>
        /// <returns>商品实体数据集</returns>
        public static List<Product> ShowProduct(int Pid)
        {
            return ProductService.SelectProduct(Pid);
        }

        /// <summary>
        /// 根据商品类型查询商品
        /// </summary>
        /// <param name="ClassID">商品类型编号</param>
        /// <returns>商品实体集</returns>
        public static List<Product> ShowProduct(string ClassID) {
            return ProductService.SelectProduct(ClassID);
        }


    }
}
